package com.jzo2o.market.controller.operation;

import com.jzo2o.common.model.PageResult;
import com.jzo2o.market.model.dto.request.CouponOperationPageQueryReqDTO;
import com.jzo2o.market.model.dto.response.CouponInfoResDTO;
import com.jzo2o.market.service.ICouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * \* User: chy
 * \* Date: 2025/10/11  10:56
 * \* Description:
 * \
 */
@RestController
@RequestMapping("/operation/coupon")
public class CouponController {

    @Autowired
    private ICouponService couponService;
    /**
     * 查询领取记录  优惠券列表
     * @param reqDTO
     * @return
     */
    @GetMapping("/page")
    public PageResult<CouponInfoResDTO> page(CouponOperationPageQueryReqDTO reqDTO) {
        return couponService.queryCouponList(reqDTO);
    }
}
